package com.topone.dataObject;

import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Entity
@DynamicUpdate
public class OfficalWechat implements Serializable {

    @Id
    @Column(name = "app_id")
    private String appId;

    @Column(name = "jsapi_ticket")
    private String jsapiTicket;

    @Column(name = "jsapi_ticket_expired_time")
    private Long jsapiTicketExpiredTime;

    @Column(name = "comment", length = 4056)
    private String comment;

    private Date created;

    private Date updated;

    @Column(name = "sequence_number")
    private Long sequence = 1L;

    @Column(name = "data_flag")
    private String dataFlag;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getJsapiTicket() {
        return jsapiTicket;
    }

    public void setJsapiTicket(String jsapiTicket) {
        this.jsapiTicket = jsapiTicket;
    }

    public Long getJsapiTicketExpiredTime() {
        return jsapiTicketExpiredTime;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Long getSequence() {
        return sequence;
    }

    public void setSequence(Long sequence) {
        this.sequence = sequence;
    }

    public String getDataFlag() {
        return dataFlag;
    }

    public void setDataFlag(String dataFlag) {
        this.dataFlag = dataFlag;
    }

    public void setJsapiTicketExpiredTime(Long jsapiTicketExpiredTime) {
        this.jsapiTicketExpiredTime = jsapiTicketExpiredTime;
    }
}
